//
// Text
//

// Text colors
@each $name, $color in $theme-text-colors {
    // Base color
    .text-#{$name} {
        color: var(--#{$prefix}text-#{$name}) !important;
    }

    // Inverse color
    @if (theme-inverse-color($name)) {
        .text-inverse-#{$name} {
            color: var(--#{$prefix}#{$name}-inverse) !important;
        }
    }

    @if (theme-light-color($name)) {
        // Light colors
        .text-light-#{$name} {
            color: var(--#{$prefix}#{$name}-light) !important;
        }
    }

    // Hover
    .text-hover-#{$name} {
        transition: $transition-link;

        i {
            transition: $transition-link;
        }

        &:hover {
            transition: $transition-link;
            color: var(--#{$prefix}text-#{$name}) !important;

            i {
                transition: $transition-link;
				color: var(--#{$prefix}text-#{$name}) !important;
			}

			.svg-icon {
				color: var(--#{$prefix}text-#{$name}) !important;
			}
        }
    }

    // Active
    .text-active-#{$name} {
        transition: $transition-link;        

        i {
            transition: $transition-link;
        }

        &.active {
            transition: $transition-link;
            color: var(--#{$prefix}text-#{$name}) !important;
            
            i {
                transition: $transition-link;
                color: var(--#{$prefix}text-#{$name}) !important;
            }
    
            .svg-icon {
                color: var(--#{$prefix}text-#{$name}) !important;
            }
        }
    }
}

// Parent hover
.parent-hover {
    @each $name, $color in $theme-text-colors {
        .parent-hover-#{$name} {
            transition: $transition-link;
        }

        &:hover {
            .parent-hover-#{$name} {
                transition: $transition-link;
                color: var(--#{$prefix}text-#{$name}) !important;
            }
        }    
    }
}

// Parent active
.parent-active {
    @each $name, $color in $theme-text-colors {
        .parent-active-#{$name} {
            transition: $transition-link;
        }

        &.active {
            .parent-active-#{$name} {
                transition: $transition-link;
                color: var(--#{$prefix}text-#{$name}) !important;
            }
        }    
    }
}

// Text transparent
.text-transparent {
    color: transparent;
}

// Cursor pointer
.cursor-pointer {
    cursor: pointer;
}

// Cursor default
.cursor-default {
    cursor: default;
}
// Cursor move
.cursor-move {
    cursor: move;
}

// Icons
i {
    &.bi,
    &[class^="fonticon-"],
    &[class*=" fonticon-"],
    &[class^="la-"],
    &[class*=" la-"] {
        line-height: 1;
        font-size: 1rem;
        color: var(--#{$prefix}text-muted);        
    }   
}

i {
    &[class^="fa-"],
    &[class*=" fa-"] {
        //line-height: 1;
        //font-size: 1rem;
        //color: var(--#{$prefix}text-muted);        
    }   
}

// Link transition
a {
    transition: $transition-link;

    &:hover {
        transition:$transition-link;
    }
}
